import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class Main {
    public static void main(String[] args) {
        JFrame frame = new JFrame("title");
//        frame.setSize(800, 600);
        frame.setBounds(800,500,300,500);
//        frame.getContentPane().setBackground(Color.white);
        frame.setLayout(new FlowLayout());
        JLabel label1 = new JLabel("请输入还款方式(万元)：");
        JComboBox<String> comboBox = new JComboBox();
        comboBox.addItem("等额本金");
        comboBox.addItem("等额本息");
        JLabel label2 = new JLabel("请输入贷款金额(万元)：");
        JLabel label3 = new JLabel("请输入贷款时间(月数)：");
        JLabel label4 = new JLabel("请输入年利率(%)：");
        JLabel label5 = new JLabel("总利率(万元)：");
        JTextField aTextField = new JTextField(10);
        JTextField mTextField = new JTextField(10);
        JTextField iTextField = new JTextField(13);
        JTextField sumTextField = new JTextField(15);
        frame.add(label1);
        frame.add(comboBox);
        frame.add(label2);
        frame.add(aTextField);
        frame.add(label3);
        frame.add(mTextField);
        frame.add(label4);
        frame.add(iTextField);
        frame.add(label5);
        frame.add(sumTextField);
        JButton button = new JButton("submit");
        frame.add(button);
        frame.setVisible(true);

    }
    public class MyButtonListener implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            MyButtonListener lis = new MyButtonListener();

        }
    }
}